package com.gnerv.pabu.basic.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 * CMS-文章表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Data
@ToString
@NoArgsConstructor
@TableName("cms_article")
public class Article extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 业务主键
     */
    @TableId(value = "uk_id", type = IdType.UUID)
    private String ukId;

    /**
     * 标题
     */
    private String title;

    /**
     * 作者
     */
    private String author;

    /**
     * 发布时间
     */
    private LocalDateTime gmtRelease;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

}
